package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /*
     * 批量添加
     *
     * */
    void insertBatch(List<OrderDetail> orderDetailList);

    /**
     * @return 查询明细
     * @author 小陈
     * @DateTime:
     */
    @Select("select *from order_detail where order_id =#{orderId}")
    List<OrderDetail> geByOrderId(Long orderId);


}
